package woaini.wind.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
import woaini.wind.domain.MinIOContent;

import java.util.List;

@Repository
public interface MinIOContentRepository extends JpaRepository<MinIOContent, Long>, JpaSpecificationExecutor<MinIOContent> {
  Page<MinIOContent> findByKey(String key, Pageable pageable);

  Page<MinIOContent> findByKeyLike(String key, Pageable pageable);

  List<MinIOContent> findMinIOContentByKey(String key);

  boolean existsByKeyIgnoreCase(String key);
}
